﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    
    var holidays = ViewBag.Holidays as List<Nop.Core.Domain.Directory.Holiday>;
    if (holidays == null)
    {
        holidays = new List<Nop.Core.Domain.Directory.Holiday>();
    }
    ViewBag.Title = "Hours of Operation";
    // +string+ the entire page
}
<div id="main">
    <section class="col-xxs-12 col-xs-12 col-sm-10 col-sm-offset-1 col-md-10 col-md-offset-1 col-lg-10 col-lg-offset-1">
        <div class="service-detail row">
            <h1 class="page-title"><span class="title-image"></span>SpotsHUB Hours of Operation</h1>

            <p>Our customer service hours are 9 AM to 5 PM (local time), courier service delivery operation hours are 8 AM to 4 PM (local time), and shopping service delivery operation hours are 8 AM to 9 PM (local time) Monday to Friday except statutory holidays. Please refer to the following table for the days we do not operate in 2015 and 2016. If you have any questions, please <a href="@Url.RouteUrl("ContactUs")">contact us</a>.</p>
            <div class="service-detail-table">
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th style="width: 50%;">Statutory Holiday</th>
                            <th style="width: 50%;" class="head-even">Day(s) Closed</th>
                        </tr>
                    </thead>
                    <tbody>
                        @for (int i = 0; i < holidays.Count; i++)
                        {
                            <tr @if (i % 2 == 1) { <text> class="row-odd" </text>   }>
                                <td>@holidays[i].Name</td>
                                @if (String.IsNullOrEmpty(holidays[i].Description))
                                {
                                    <td class="cell-even">@holidays[i].Dates.FirstOrDefault().Date.ToLongDateString()</td>
                                }
                                else
                                {
                                    <td class="cell-even">@holidays[i].Description</td>
                                }
                            </tr>
                        }
                    </tbody>
                </table>
            </div>
            <ul>
                <li>Orders placed on the day(s) we do not operate will be processed on the next business day</li>
                <li>Please click <a href="@Url.RouteUrl("Topic", new { SystemName = "ShippingRegulation" })#deliverytime">here</a> for the estimated delivery time</li>
            </ul>
        </div>
    </section>
</div>